import { createRouter, createWebHistory } from 'vue-router'

export default createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'Dashboard',
      component: () => import('../views/dashboard/index.vue')
    },
    {
      path: '/news',
      name: 'NewsManagement',
      component: () => import('../views/news/index.vue')
    },
    {
      path: '/users',
      name: 'UserManagement',
      component: () => import('../views/users/index.vue')
    },
    {
      path: '/comments',
      name: 'CommentManagement',
      component: () => import('../views/comments/index.vue')
    }
  ]
})